home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Goodies / AutoGuest / AutoGuest.h < prev    next >
Text File  |  1991-09-18  |  2KB  |  70 lines

  1. #ifndef __AUTOGUEST__
  2. #define __AUTOGUEST__
  3.  
  4. /*----------------------------------------------------------------------
  5.  
  6.     Install the PPC AutoGuest patch
  7.     
  8.     This patch allows an application to start a session with a
  9.     remote computer without bringing up an authentication dialog
  10.     box if (& only if) it is possible to connect to said machine
  11.     as a guest.  If it is not possible to connect as a guest,
  12.     the authentication dialog box is brought up, but only if
  13.     your application is in the foreground.  (Without this patch,
  14.     StartSecureSession is perfectly happy to bring up the
  15.     authentication dialog box while your application is in the
  16.     background).
  17.     
  18.     This function returns a longword which should be passed to
  19.     DeinstallPPCAutoGuest to remove the patch
  20.     
  21. ----------------------------------------------------------------------*/
  22. long InstallPPCAutoGuest(void);
  23.  
  24. /*----------------------------------------------------------------------
  25.     
  26.     Remove the PPC AutoGuest patch
  27.     
  28.     The parameter should be the longword returned from
  29.     InstallPPCAutoGuest
  30.     
  31. ----------------------------------------------------------------------*/
  32. void DeinstallPPCAutoGuest( long oldPPCDispatch );
  33.  
  34. /*----------------------------------------------------------------------
  35.  
  36.     Install the 'No Interaction Allowed' Patch
  37.     
  38.     This patch prevents the EPPC toolbox from returning a
  39.     'No User Interaction Allowed' error (-610) if your application
  40.     attempts to start a session while it is in the background.
  41.     
  42.     You should not install this patch unless the 'PPCAutoGuest'
  43.     patch is also installed; if you do, your program will bring
  44.     up an authentication dialog box even if it is in the background.
  45.     This is a bad thing.
  46.     
  47. ----------------------------------------------------------------------*/
  48. long InstallNoInteractionPatch(void);
  49.  
  50. /*----------------------------------------------------------------------
  51.     
  52.     Remove the 'No Interaction Allowed' Patch
  53.     
  54.     The parameter should be the longword returned from
  55.     InstallPPCAutoGuest
  56.     
  57. ----------------------------------------------------------------------*/
  58. void DeinstallNoInteractionPatch( long oldDispose );
  59.  
  60. /*----------------------------------------------------------------------
  61.     
  62.     This function returns 'true' if the current process is in the
  63.     foreground.  It is used by the PPC Autoguest patch.
  64.     
  65. ----------------------------------------------------------------------*/
  66. Boolean InForeGround(void);
  67.  
  68.  
  69. #endif
  70.